/*
 * @Description:
 * @Version: @1.0.0
 * @Autor: YJY
 * @Date: 2021-07-14 13:49:51
 * @LastEditors: YJY
 * @LastEditTime: 2021-07-14 13:54:25
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
